package com.gxa.pojo;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.Date;
import java.util.UUID;

@Data
@NoArgsConstructor
@AllArgsConstructor
public class Activity {
    private Integer id;

    private Integer tId;//诊疗项目id

    private Integer doctorId;//医生id

    @JsonFormat(pattern = "YYYY-MM-dd")
    private Date aTime;//诊疗时间

    private Integer dId;//医院id

    @JsonFormat(pattern = "YYYY-MM-dd")
    private Date bTime;//开始报名时间

    @JsonFormat(pattern = "YYYY-MM-dd")
    private Date eTime;//截止报名时间

    private Integer people;//人数


    private Integer money;//收费


    private String des;//诊疗状态

    public Activity(Integer id, Integer tId, Integer doctorId, Date aTime, Integer dId, Date bTime, Date eTime, Integer people, Integer money) {
        this.id = id;
        this.tId = tId;
        this.doctorId = doctorId;
        this.aTime = aTime;
        this.dId = dId;
        this.bTime = bTime;
        this.eTime = eTime;
        this.people = people;
        this.money = money;
        this.des =UUID.randomUUID().toString();
    }
}